<#macro inputType name value>
<select class="combox" name="${name!'inputType'}">
	<#local inputTypes={'text':'输入框','number':'数字','file':'文件','password':'密码','editor':'编辑器','textarea':'文本域'}/>
	<#list inputTypes?keys as a>
	<option value="${a}" ${(value??&&a=value)?then(' selected="true"','')}>${inputTypes[a]}</option>
	</#list>
</select>
</#macro>
<#assign extendHtml>
	<dl class="nowrap">
		<dt>
			<label>字段<@t.m 'field.name'/>：</label>
			<input class="required" name="ex_new_name" maxlength="20" type="text" size="10"/>
			<a class="buttonActive" href="javascript:$('input[name=ex_new_name]',navTab.getCurrentPanel()).parent().parent().remove();"><span><@t.m 'button.delete'/></span></a>
		</dt>
		<dd>
			<p class="nowrap">
				<label>字段编码：</label>
				<@inputType 'ex_new_inputType' ''/><input class="required alphanumeric" name="ex_new_code" type="text" maxlength="20" size="20"/>
				<label><input name="ex_new_required" type="checkbox"/>必填</label>
				<#if extendFieldList??><span class="info">只能填写字母, 系统字段:<#list extendFieldList as k><a href="javascript:$('input[name=ex_new_code]',navTab.getCurrentPanel()).val('${k}')">${k}</a> </#list></span></#if>
			</p>
			<p>
				<label>默认值：</label>
				<input name="ex_new_defaultValue" type="text" maxlength="50" size="30"/>
			</p>
			<p class="nowrap">
				<label>描述：</label>
				<input name="ex_new_description" maxlength="100" size="30"/>
			</p>
		</dd>
	</dl>
</#assign>
${extendHtml?html}